import $api from './server'

export const addType = async (data)=>{
    let res = await $api.post('/roomtype/add',data)
    return res.data;
}

export const getAllType = async (data)=>{
    let res = await $api.post('/roomtype/getAll',data)
    return res.data;
}

export const delType  = async (data)=>{
    let res = await $api.post('/roomtype/del',data)
    return res.data;
}
export const editType = async (data)=>{
    let res = await $api.post('/roomtype/edit',data)
    return res.data;
}
